package cn.csc.module.product.api.tagref;

import cn.csc.framework.common.pojo.CommonResult;
import cn.csc.module.product.api.tagref.dto.SpuTagReferenceDTO;
import cn.csc.module.product.enums.ApiConstants;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigInteger;
import java.util.List;

/**
 * @author liuchuang
 * @version 1.0
 * @modify
 * @since 2025/1/15 17:36
 */
@FeignClient(name = ApiConstants.NAME) // TODO fallbackFactory =
@Api(tags = "RPC 服务 - 商品标签服务")
public interface SpuTagReferenceApi {

    String PREFIX = ApiConstants.PREFIX + "/tagRef";


    /**
     * 查询spu对应的tag信息
     * @param spuId 参数
     * @return
     */
    @GetMapping(value = PREFIX + "/getBySpuId")
    CommonResult<List<SpuTagReferenceDTO>> getBySpuId(@RequestParam("spuId") BigInteger spuId);



}
